﻿using Sx.Mall.WebContract.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sx.Mall.WebContract
{
   public interface IOrderService
    {
       // /// <summary>
       // /// 生成订单编号
       // /// </summary>
       // /// <param name="uid">用户id</param>
       // /// <param name="shipRegionId">配送区域id</param>
       // /// <param name="addTime">下单时间</param>
       // /// <returns>订单编号</returns>
       //string GenerateOSN(int uid, int shipRegionId, DateTime addTime);

       ///// <summary>
       // /// 从订单商品列表中获得指定订单的商品列表
       // /// </summary>
       // /// <param name="oid">订单id</param>
       // /// <param name="orderProductList">订单商品列表</param>
       // /// <returns></returns>
       //List<OrderProductInfoDto> GetOrderProductList(int oid, List<OrderProductInfoDto> orderProductList);

        /// <summary>
        /// 获得订单信息
        /// </summary>
        /// <param name="oid">订单id</param>
        /// <returns>订单信息</returns>
        OrderInfoDto GetOrderByOid(int oid);

       ///// <summary>
       // /// 获得订单信息
       // /// </summary>
       // /// <param name="osn">订单编号</param>
       // /// <returns>订单信息</returns>
       //OrderInfoDto GetOrderByOSN(string osn);

       ///// <summary>
       // /// 获得订单状态
       // /// </summary>
       // /// <param name="oid">订单id</param>
       // /// <returns></returns>
       //int GetOrderStateByOid(int oid);
    }
}
